# ctrl + d
# ctrl + x
# ctrl + w

# print('abc' * 10)
# print('*' * 10)

# print('abc')
# print('a' + 'b' + 'c')

def print_menu():
    num = 20

    print('*' * num + '菜单开始' + '*' * num)
    print('1 增加学生信息')
    print('2 删除学生信息')
    print('3 修改学生信息')
    print('4 查询学生信息')
    print('5 所有学生信息')
    print('6 按照成绩排序')
    print('0 退出')
    print('*' * num + '菜单结束' + '*' * num)


# print_menu()

p1 = ['张三', 18, '男']
p2 = ['李四', 10, '女']

persons = []
persons.append(p1)
persons.append(p2)

# for i in range(10):
while True:
    print_menu()
    option = input('请选择： ')

    if option == '0':
        break
    elif option == '1':
        print('1')
    elif option == '2':
        print('2')
    elif option == '3':
        print('3')
    elif option == '4':
        print('4')
    elif option == '5':
        # print('5')

        print('共有人数: ' + str(len(persons)))
        # 遍历列表
        for item in persons:
            print(item)


    elif option == '6':
        print('6')
    else:
        print('无效的选项！')
